<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>自定义组件</title>
  <link rel="stylesheet" href="layout.css">
</head>
<body>
  <input id="add" type="button" value="弹出查找对话框">
  <hr>
  <div id="content">
    文本
  </div>
  <div id='main'>
  </div>
  <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
  <script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
  <script src="main.js"></script>
  <script>
    $(function () {
      var $btnDlg = $("#add");
      $btnDlg.click(function () {
        $dlgfind.show({
          txt:'#content',
        });
      });
    });
  </script>
</body>
</html>